import request from "@/router/axios";

export const getCategoryList = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/gaugetype/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const saveCategory = params => {
  return request({
    url: "/api/blade-measure/measure/gaugetype/save",
    method: "post",
    data: {
      ...params
    }
  });
};

export const updateCategory = params => {
  return request({
    url: "/api/blade-measure/measure/gaugetype/update",
    method: "post",
    data: {
      ...params
    }
  });
};

export const deleteCategory = params => {
  return request({
    url: "/api/blade-measure/measure/gaugetype/remove",
    method: "post",
    params: {
      ...params
    }
  });
};
